<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模板语法</title>
</head>
<body>

{% if num > 100 %}

    <h1>大于100</h1>

{% elif num < 100 %}

    <h1>小于100</h1>

{% else %}

    <h1>等于100</h1>

{% endif %}


{% if num %}
<h1>num>10</h1>

{% endif%}
</body>
</html>